This is part of scalecube-js project, see more at https://github.com/scalecube/scalecube-js
Full documentation
Cluster-browser
This package provides a default cluster implementation for browser.
it uses native browser message event for creating the distributed environment.
Basic Usage
import { joinCluster } from '@scalecube/cluster-browser';
const clusterOptions = {
seedAddress,
address,
itemsToPublish: [],
};
const cluster = joinCluster(clusterOptions);
cluster.getCurrentMembersData().then(console.log);
cluster.listen$().subscribe(console.log);
cluster.destroy().then(console.log);